package org.fight.landowner.remoting.exception;

/**
 * @Author wangxuehao02
 * @Date 2024/2/22 7:46 PM
 * @Description
 **/
public enum RemotingRequestExceptionType {
    UNKNOWN_EXCEPTION(0, "未知异常"),
    UNKNOWN_REQUEST_TYPE(400, "未知请求类型"),
    SYSTEM_PROCESSING_EXCEPTION(500, "系统处理异常");

    private final int code;

    private final String message;

    RemotingRequestExceptionType(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
